package com.bnz.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
    @Id
    private Integer eid;
    private String ename;
    private String bdate;
    private String sex;
    private String city;
    private Integer did;
    @Transient
    private String dname;   //部门名称


}
